package com.jeesite.modules.wzt.entity;

import javax.validation.constraints.Size;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 皖政通组织机构Entity
 * @author xhc
 * @version 2023-03-20
 */
@Table(name="wzt_org", alias="a", label="皖政通组织机构信息", columns={
		@Column(name="code", attrName="code", label="机构 ID", isPK=true),
		@Column(name="office_code", attrName="officeCode", label="督查系统officecode"),
		@Column(name="type", attrName="type", label="机构类型"),
		@Column(name="parentId", attrName="parentId", label="父机构 ID"),
		@Column(name="bizCode", attrName="bizCode", label="机构的业务条线分类"),
		@Column(name="divisionCode", attrName="divisionCode", label="机构所属的行政区划代码"),
		@Column(name="area_code", attrName="areaCode", label="系统区域代码"),
		@Column(name="level", attrName="level", label="级别代码"),
		@Column(name="managerId", attrName="managerId", label="机构负责人的代码，引用人员 ID 属性"),
		@Column(name="uscc", attrName="uscc", label="统一社会信用代码"),
		@Column(name="sequence", attrName="sequence", label="序号"),
		@Column(name="unitId", attrName="unitId", label="单位 ID"),
		@Column(name="name", attrName="name", label="机构名称"),
		@Column(name="office_name", attrName="officeName", label="督查系统officeName"),
	}, orderBy="a.code DESC"
)
public class WztOrg extends DataEntity<WztOrg> {
	
	private static final long serialVersionUID = 1L;
	 /**
	 * 机构 ID
	 */
	private String code;
	 /**
	 * 督查系统officecode
	 */
	private String officeCode;
	 /**
	 * 机构类型
	 */
	private String type;
	 /**
	 * 父机构 ID
	 */
	private String parentId;
	 /**
	 * 机构的业务条线分类
	 */
	private String bizCode;
	 /**
	 * 机构所属的行政区划代码
	 */
	private String divisionCode;
	 /**
	 * 系统区域代码
	 */
	private String areaCode;
	 /**
	 * 级别代码
	 */
	private String level;
	 /**
	 * 机构负责人的代码，引用人员 ID 属性
	 */
	private String managerId;
	 /**
	 * 统一社会信用代码
	 */
	private String uscc;
	 /**
	 * 序号
	 */
	private String sequence;
	 /**
	 * 单位 ID
	 */
	private String unitId;
	private String name;

	public String getBizCode() {
		return bizCode;
	}

	public void setBizCode(String bizCode) {
		this.bizCode = bizCode;
	}

	public String getDivisionCode() {
		return divisionCode;
	}

	public void setDivisionCode(String divisionCode) {
		this.divisionCode = divisionCode;
	}

	public String getManagerId() {
		return managerId;
	}

	public void setManagerId(String managerId) {
		this.managerId = managerId;
	}

	public String getUnitId() {
		return unitId;
	}

	public void setUnitId(String unitId) {
		this.unitId = unitId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getOfficeName() {
		return officeName;
	}

	public void setOfficeName(String officeName) {
		this.officeName = officeName;
	}

	private String officeName;
	
	public WztOrg() {
		this(null);
	}

	public WztOrg(String id){
		super(id);
	}
	
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@Size(min=0, max=100, message="督查系统officecode长度不能超过 100 个字符")
	public String getOfficeCode() {
		return officeCode;
	}

	public void setOfficeCode(String officeCode) {
		this.officeCode = officeCode;
	}
	
	@Size(min=0, max=5, message="机构类型长度不能超过 5 个字符")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Size(min=0, max=100, message="父机构 ID长度不能超过 100 个字符")
	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	@Size(min=0, max=100, message="系统区域代码长度不能超过 100 个字符")
	public String getAreaCode() {
		return areaCode;
	}

	public void setAreaCode(String areaCode) {
		this.areaCode = areaCode;
	}
	
	@Size(min=0, max=50, message="级别代码长度不能超过 50 个字符")
	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	
	@Size(min=0, max=100, message="统一社会信用代码长度不能超过 100 个字符")
	public String getUscc() {
		return uscc;
	}

	public void setUscc(String uscc) {
		this.uscc = uscc;
	}
	
	@Size(min=0, max=20, message="序号长度不能超过 20 个字符")
	public String getSequence() {
		return sequence;
	}

	public void setSequence(String sequence) {
		this.sequence = sequence;
	}
	

}